package com.chinamobile.iot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotNull;

/**
 * Created by szl on 2016/12/14.
 */
@Configuration
@ConfigurationProperties(prefix = "kafka.topic")
public class KafkaTopicConfiguration {
    @NotNull
    private String cmd;

    @NotNull
    private String connEvent;

    @NotNull
    private String dataEvent;

    @NotNull
    private String data;

    public String data() {
        return data;
    }

    public String cmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getCmd() {
        return cmd;
    }

    public String getConnEvent() {
        return connEvent;
    }

    public void setConnEvent(String connEvent) {
        this.connEvent = connEvent;
    }

    public String getDataEvent() {
        return dataEvent;
    }

    public void setDataEvent(String dataEvent) {
        this.dataEvent = dataEvent;
    }

    public String getData() {
        return data;
    }
}
